from selenium import webdriver
from selenium.webdriver.common.by import By
import time

driver = webdriver.Chrome()
driver.get("http://www.itcast.cn")
driver.maximize_window()

driver.implicitly_wait(10)

driver.switch_to.frame('chatIframe')

element = driver.find_element(By.CLASS_NAME,'service')
print(element.text)

time.sleep(50)


